/*
 * @(#)ConditionInfoGroup.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.config.runtime;

import java.util.ArrayList;
import java.util.List;

/**
 * {@link ConditionInfo} 를 여러개 묶어서 choose-when 이 가능한 클래스
 *
 * @author Web Platform Development Team
 */
public class ConditionInfoGroup implements ResultCondition {
	
	/** Condition Info 목록 */
	List<ResultCondition> conditionInfos = new ArrayList<ResultCondition>();

	/**
	 * {@link ConditionInfo} 를 추가한다.
	 * 
	 * @param conditionInfo 추가할 {@link ConditionInfo}
	 * */
	public void addConditionInfo(ConditionInfo conditionInfo) {
		conditionInfos.add(conditionInfo);
	}
	
	/**
	 * @return {@link ConditionInfo} 목록을 반환한다.
	 * */
	public List<ResultCondition> getConditionInfos() {
		return conditionInfos;
	}

	@Override
	public ResultConditionType getResultType() {
		return ResultConditionType.conditionGroup;
	}
}
